/*  *代表所有标签，包括body标签以及body里面的所有标签 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  /* vh是相对单位 1vh”等于视口高度的“1%”  vh优势在于能够直接获取高度，而用 % 在没有设置 body 高度的情况下，是无法正确获得可视区域的高度的*/
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(../img/bg.jpg);
  background-size: cover;
  overflow: hidden;
}

.container {
  width: 390px;
  height: 844px;
  background: url(../img/bg.png);
  overflow: hidden;
  /*transform2D或3D转换 rotate旋转 skew倾斜扭曲 scale缩放*/
  transform: rotate(35deg) skewX(-5deg) skewY(-5deg) scale(0.8);
  /* 动画过渡 */
  transition: all 0.5s;
  position: relative;
}

.container:hover {
  /* translate平移*/
  transform: translateX(20px) translateY(100px) rotate(35deg) skewX(-5deg) skewY(-5deg) scale(0.8);
  overflow: visible;
}

.container img {
  position: absolute;
  transition: 0.5s;
}

.container:hover img:nth-child(2) {
  transform: translateX(-200px) translateY(-60px);
  z-index: 6
}

.container:hover img:nth-child(3) {
  transform: translateX(-240px) translateY(-10px);
  z-index: 5;
}

.container:hover img:nth-child(4) {
  transform: translateX(-180px) translateY(-30px);
  z-index: 8;
}

.container:hover img:nth-child(5) {
  transform: translateX(-100px) translateY(-130px);
  z-index: 4;
}

.container:hover img:nth-child(6) {
  transform: translateX(-100px) translateY(-130px);
  z-index: 4;
}

img:nth-child(7) {
  transform: translateX(-50px) translateY(-30px);
  opacity: 0;
  z-index: 1;
}

.container :hover img:nth-child(7) {
  transform: translateX(-50px) translateY(-30px);
  z-index: 1;
  opacity: 1;
}

.container:nth-child(2) {
  margin-left: 200px;
  background: url(../img/List.png);
}